/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2020. All rights reserved.
 */

package com.example.springbootdemo.task;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
@RequestMapping("/api/disk")
public class TestController {
    @GetMapping("/backup")
    public String backup() {
        List<String> path = Arrays.asList("来自：iPhone", "来自：23127PN0CC", "重要文件");
        List<String> backup = AutoUpload.backup(path);
        return backup.toString();
    }
}
